﻿<UserControl x:Class="Zorbo.UI.Plugins"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:my="clr-namespace:Zorbo.UI"
             mc:Ignorable="d" 
             d:DesignHeight="250" d:DesignWidth="350" 
             Loaded="UserControl_Loaded">
    
    <Grid>
        <TextBlock Text="Available plugins:" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="12,12,0,0" />
        
        <ListView Name="lvAvailable" 
                  ItemsSource="{Binding Path=Available, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}" 
                  Margin="12,34,12,41" SelectionChanged="lvAvailable_SelectionChanged">
            <ListView.View>
                <GridView>
                    <GridViewColumn Header="Name" DisplayMemberBinding="{Binding Path=Name}" Width="160"/>
                    <GridViewColumn Header="State" DisplayMemberBinding="{Binding Path=State}" Width="130"/>
                </GridView>
            </ListView.View>
        </ListView>
        <Button Content="Import..." Height="23" HorizontalAlignment="Right" Margin="0,0,93,12" Name="btnImport" VerticalAlignment="Bottom" Width="75" Click="btnImport_Click" />
        <Button Content="Load" Height="23" HorizontalAlignment="Right" Margin="0,0,12,12" Name="btnLoad" VerticalAlignment="Bottom" Width="75" Click="btnLoad_Click" />
    </Grid>
</UserControl>
